<template>
  <div id="app">
    <el-header>
      <Navbar />
    </el-header>
    <el-main>
      <router-view />
    </el-main>
  </div>
</template>
<script>
import Navbar from "@/components/Navbar.vue";
export default {
  components: { Navbar },
  mounted() {
    this.$store.dispatch("getNews")
  }
};
</script>
<style lang="scss">
@import "~@/assets/reset.css";
@import "~@/assets/commo.css";
.el-main {
  position: relative;
  width: 65vw;
  margin: 0 auto;
  margin-top: 80px;
}

.el-header {
  padding: 0px !important;
}
</style>
